package org.xiaojinlong.regex;

import java.util.regex.Pattern;

/**
 * @author Jin Long
 *         2016/5/5
 */
public class JavaRegex {
    public static void main(String[] args) {
        Pattern pattern = Pattern.compile("[0-9]{4}/[0-9]{2}/[0-9]{2} - [0-9]{4}/[0-9]{2}/[0-9]{2}");
        System.out.println(pattern.matcher("2016/08/02 - 2016/09/03").matches());
    }
}
